<%@page import="com.bill.common.utils.TranType"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
//获取当前浏览器语言做为默认的语言版本start
request.setAttribute("lang_defaultLanguage","zh_CN");
%> 
<fmt:setLocale value="${empty cookie['language'].value?lang_defaultLanguage:cookie['language'].value}"/>
<fmt:setBundle basename="i18n.itilbase"/>
<c:set var="lang" scope="session" value="${empty cookie['language'].value?lang_defaultLanguage:cookie['language'].value}" />

<div class="top">
	<div class="logo">
		<img src="img/white-sp.png">
	</div>
	<div class="nav">
		<ul id="index_navList_head" class="navList"><!-- navListChoose -->
			<li class="navListBox navListChoose"><a href="index.jsp"><fmt:message key="i18n.firstPage" /></a></li>
			<li class="navListBox"><a href="javascript:;"><fmt:message key="i18n.gerenManage" /><img
					src="img/xia.png"></a>
				<div class="navSBox">
					<ul class="navSBoxList">
						<li><a href="cp.jsp" target="main"><fmt:message key="i18n.updatePassword" /></a></li>
			        	<li><a href="pi.jsp" target="main"><fmt:message key="i18n.updateUserInfo" /></a></li>
			        	<li><a href="changeMobile.jsp" target="main">修改手机号码</a></li>
					</ul>
				</div></li>
			<li class="navListBox"><a href="javascript:;"><fmt:message key="i18n.yewuManage" /><img
					src="img/xia.png"></a>
				<div class="navSBox">
					<ul class="navSBoxList">
						<li><a href="recommend.jsp" target="main"><fmt:message key="i18n.myTuiJian" /></a></li>
						<li><a href="cashBusiness.jsp" target="main"><fmt:message key="i18n.acountTx" /></a></li>
						<li><a href="transfer.jsp" target="main"><fmt:message key="i18n.accountZhuanZhang" /></a></li>
						<%-- <li><a href="userUpgrade.jsp" target="main"><fmt:message key="title.userUpgrade" /></a></li> --%>
					</ul>
				</div></li>
			<li class="navListBox"><a href="javascript:;"><fmt:message key="detailQuery" /><img src="img/xia.png"></a>
				<div class="navSBox">
					<ul class="navSBoxList">
						<%-- <li><a href="dynamicAward.jsp" target="main"><fmt:message key="i18n.jiangjinMX" /></a></li> --%>
						<li><a href="accountDetails.jsp?dtype=<%=TranType.STATIC %>" target="main"><fmt:message key="<%=TranType.STATIC %>" /></a></li>
			        	<li><a href="accountDetails.jsp?dtype=<%=TranType.DYNAMIC %>" target="main"><fmt:message key="<%=TranType.DYNAMIC %>" /></a></li>
			        	<li><a href="accountDetails.jsp?dtype=<%=TranType.OTHER1 %>" target="main"><fmt:message key="<%=TranType.OTHER1 %>" /></a></li>
					</ul>
				</div></li>
			<li class="navListBox"><a href="javascript:;"><fmt:message key="i18n.xinxiManage" /><img
					src="img/xia.png"></a>
				<div class="navSBox">
					<ul class="navSBoxList">
						<li><a href="newsList.jsp?newType=WebAffiche" target="main">公司公告</a></li>
					</ul>
				</div>
			</li>
		</ul>
	</div>
</div>
<div class="top2_head" style="background-color: #ffffed;">
<a href="javascript:;" class="top2L" ></a>
<div class="top2R">
	<a href="javascript:mainrefresh();" class="top2R_1">刷新</a>
	<a href="javascript:logout();" class="top2R_2">安全退出</a>
</div>
</div>
<div class="right">
	<div style="margin-left:auto; margin-right:auto;width: 100%;min-width: 1200px;">
	<iframe id="main" name="main" scrolling="auto" src="main.jsp" onload="dyniframesize('main')"
		frameborder=0 scrolling=yes
		style="margin-left: 0px; margin-top: 0px; width: 100%;min-height: 800px;"></iframe>
	</div>
</div>

<script type="text/javascript">
<!--
//startInit('main', 560);
$("#index_navList_head").find("li").click(function(){
	var ae = $(this).find(".navSBoxList").find("a");
	if(ae === null || ae.length === 0){//说明没有下拉菜单
		$("#index_navList_head").find("li").removeClass('navListChoose');
		$(this).addClass('navListChoose');
	}
	$("#main").css("height",560);
});
$(".navSBox").find("li").click(function(){//点击下拉菜单内部的li时
	$("#index_navList_head").find("li").removeClass('navListChoose');
	$(this).parents(".navListBox").addClass('navListChoose');
});

function navListChooseChange(){
	$("#index_navList_head").find("li").removeClass('navListChoose');
	$(obj).addClass('navListChoose');
}
function dyniframesize(down) {
	var ifm = document.getElementById(down);
	var subWeb = document.frames ? document.frames[down].document
			: ifm.contentDocument;
	if (ifm != null && subWeb != null) {
		if (subWeb.body.scrollHeight < 500) {
			ifm.height = 800;
		} else {
			ifm.height = subWeb.body.scrollHeight + 100;
		}

		parent.scrollTo(0, 0);
	} 
}
var browserVersion = window.navigator.userAgent.toUpperCase();
var isOpera = browserVersion.indexOf("OPERA") > -1 ? true : false;
var isFireFox = browserVersion.indexOf("FIREFOX") > -1 ? true : false;
var isChrome = browserVersion.indexOf("CHROME") > -1 ? true : false;
var isSafari = browserVersion.indexOf("SAFARI") > -1 ? true : false;
var isIE = (!!window.ActiveXObject || "ActiveXObject" in window);
var isIE9More = (! -[1, ] == false);
function reinitIframe(iframeId, minHeight) {
    try {
        var iframe = document.getElementById(iframeId);
        var bHeight = 0;
        if (isChrome == false && isSafari == false)
            bHeight = iframe.contentWindow.document.body.scrollHeight;

        var dHeight = 0;
        if (isFireFox == true)
            dHeight = iframe.contentWindow.document.documentElement.offsetHeight + 2;
        else if (isIE == false && isOpera == false)
            dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
        else if (isIE == true && isIE9More) {//ie9+
            var heightDeviation = bHeight - eval("window.IE9MoreRealHeight" + iframeId);
            if (heightDeviation == 0) {
                bHeight += 3;
            } else if (heightDeviation != 3) {
                eval("window.IE9MoreRealHeight" + iframeId + "=" + bHeight);
                bHeight += 3;
            }
        }
        else//ie[6-8]、OPERA
            bHeight += 3;

        var height = Math.max(bHeight, dHeight);
        if (height < minHeight) height = minHeight;
        iframe.style.height = height + "px";
    } catch (ex) { }
}
function startInit(iframeId, minHeight) {
    eval("window.IE9MoreRealHeight" + iframeId + "=0");
    window.setInterval("reinitIframe('" + iframeId + "'," + minHeight + ")", 300);
}
//-->
</script>
<%-- <div class="top2" style="background:#ffffed;">
	<a href="index.html" class="top2L" >首页 > </a>
	<div class="top2R">
		<span style="color:orange;">${session.userName}</span>
		<a href="index.html" class="top2R_1">刷新</a>
		<a href="logo.html" class="top2R_2">安全退出</a>
	</div>
</div> --%>